package com.ruoyi.system.controller;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.domain.AdvancedStories;
import com.ruoyi.system.service.IAdvancedStoriesService;

/**
 * 先进故事Controller
 */
@RestController
@RequestMapping("/advancedStories")
public class AdvancedStoriesController {

    @Autowired
    private IAdvancedStoriesService advancedStoriesService;

    /**
     * 查询先进故事列表
     */
    @GetMapping("/list")
    public R<List<AdvancedStories>> list() {
        List<AdvancedStories> list = advancedStoriesService.selectAdvancedStoriesList();
        return R.ok(list);
    }
}